<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>面板徽章辅助</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
    <style>
        body {
            margin: 20px;
        }
    </style>
</head>
<body>
<div class="layui-card layui-bg-blue">
    <div class="layui-card-header">面板标题</div>
    <div class="layui-card-body">面板内容</div>
</div>

<br><br>

<div class="layui-collapse" lay-accordion>
    <div class="layui-colla-item">
        <h2 class="layui-colla-title">杜甫</h2>
        <div class="layui-colla-content layui-show">内容区域</div>
    </div>
    <div class="layui-colla-item">
        <h2 class="layui-colla-title">李清照</h2>
        <div class="layui-colla-content layui-show">内容区域</div>
    </div>
    <div class="layui-colla-item">
        <h2 class="layui-colla-title">鲁迅</h2>
        <div class="layui-colla-content layui-show">内容区域</div>
    </div>
</div>

<br><br>

<!--小圆点，通过 layui-badge-dot 来定义，里面不能加文字-->
<span class="layui-badge-dot"></span>
<span class="layui-badge-dot layui-bg-orange"></span>
<span class="layui-badge-dot layui-bg-green"></span>
<span class="layui-badge-dot layui-bg-cyan"></span>
<span class="layui-badge-dot layui-bg-blue"></span>
<span class="layui-badge-dot layui-bg-black"></span>
<span class="layui-badge-dot layui-bg-gray"></span>

<!--椭圆体，通过 layui-badge 来定义。事实上我们把这个视作为主要使用方式-->
<span class="layui-badge">6</span>
<span class="layui-badge">99</span>
<span class="layui-badge">61728</span>

<span class="layui-badge">赤</span>
<span class="layui-badge layui-bg-orange">橙</span>
<span class="layui-badge layui-bg-green">绿</span>
<span class="layui-badge layui-bg-cyan">青</span>
<span class="layui-badge layui-bg-blue">蓝</span>
<span class="layui-badge layui-bg-black">黑</span>
<span class="layui-badge layui-bg-gray">灰</span>

<!--边框体，通过 layui-badge-rim 来定义-->
<span class="layui-badge-rim">6</span>
<span class="layui-badge-rim">Hot</span>

<br><br>

<button class="layui-btn">查看消息<span class="layui-badge layui-bg-gray">1</span></button>
<button class="layui-btn">动态<span class="layui-badge-dot layui-bg-orange"></span></button>

<br><br>

<ul class="layui-nav" style="text-align: right;"> <!-- 小Tips：这里有没有发现，设置导航靠右对齐（或居中对齐）其实非常简单 -->
    <li class="layui-nav-item">
        <a href="">控制台<span class="layui-badge">9</span></a>
    </li>
    <li class="layui-nav-item">
        <a href="">个人中心<span class="layui-badge-dot"></span></a>
    </li>
</ul>

<br><br>

<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">
        <li class="layui-this">网站设置</li>
        <li>用户管理<span class="layui-badge-dot"></span></li>
        <li>最新邮件<span class="layui-badge">99+</span></li>
    </ul>
    <div class="layui-tab-content"></div>
</div>

<br><br>

<blockquote class="layui-elem-quote">引用区域的文字</blockquote>
<blockquote class="layui-elem-quote layui-quote-nm">引用区域的文字</blockquote>

<br><br>

<fieldset class="layui-elem-field">
    <legend>字段集区块 - 默认风格</legend>
    <div class="layui-field-box">
        内容区域
    </div>
</fieldset>

<fieldset class="layui-elem-field layui-field-title">
    <legend>字段集区块 - 横线风格</legend>
    <div class="layui-field-box">
        内容区域
    </div>
</fieldset>

<br><br>

<hr class="layui-bg-green">
<!--默认分割线
<hr>-->

<!--赤色分割线-->
<hr class="layui-bg-red">

<!--橙色分割线
<hr class="layui-border-orange">

墨绿分割线
<hr class="layui-border-green">

青色分割线
<hr class="layui-border-cyan">

蓝色分割线
<hr class="layui-border-blue">

黑色分割线
<hr class="layui-border-black">-->

<script src="../layui/layui.js"></script>
<script>
    layui.use('element', function () {
        var element = layui.element

        //...
    })
</script>
</body>
</html>
